package cn.hp.consumer.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "user-service",fallback = UserFeignFallBack.class)
public interface UserFeignClient {

    @GetMapping("user/{id}")
    String queryById(@PathVariable("id") Long id);
}
